<template>
  <div>
    <TopTitle :texttitle="'收藏列表'" :gourl="'/home/profile'"></TopTitle>
    <HouseList @requestApi="requestApi" :renderList="bodyData"></HouseList>
  </div>
</template>

<script>
import TopTitle from '@/components/TopTitle.vue'
import HouseList from '@/components/HouseList.vue'
import { favorites } from '@/api/Interface'

export default {
  name: 'favorate',
  components: {
    TopTitle,
    HouseList,
  },
  data() {
    return {
      bodyData: [],
    }
  },
  methods: {
    async requestApi() {
      const { body } = await favorites()
      console.log(body)
      this.bodyData = body
    },
  },
}
</script>

<style></style>
